// 快捷访问
const getters = {
  token: (state) => state.user.token,
  userInfo: (state) => state.user.userInfo,
  asideWidth: (state) => state.user.asideWidth,
  hasUserInfo: (state) => {
    /**
     * @returns true 表示已存在用户信息
     */
    return JSON.stringify(state.user.userInfo) !== "{}";
  },
};
export default getters;
